package business;

import java.util.List;

import vo.Source;

public interface SourceService {

	List<Source> getAllSources();

	List<Source> getByName(int start, int pageSize, String name);

	List<Source> getByType(int start, int pageSize, String type);

	List<Source> getByNameType(int start, int pageSize, String name, String type);

	List<Source> getAllSources(int start, int pageSize);

	long getTotalCount();

	long getTotalCountByName(String name);

	long getTotalCountByType(String type);

	long getTotalCountByNameType(String name, String type);

	void addSource(Source source);

	Source getById(long id);

	Source getByEntry(String entry);

	void update(long id);

	void delete(long id);

}
